<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-xs btn-success" href="javascript:;">采购入库</a>
		<a class="btn btn-write" href="javascript:;">领用</a>
	</div>
</div>
<table class="table table-bordered animate2 fadeInUp">
	<thead>
	<tr><th>物品名称</th>
		<th>物品类型</th>
		<th>所属机构</th>
		<th>库存数量</th>
		<th style="width:100px ; text-align: center">操作</th>
	</tr>
	</thead>
	<tbody>
	<#list pageBean.resultList as stock>
	<tr class="ui-widget-content">
		<td>${(stock.gn)!''}</td>
		<td><#if stock.sort == 1>消耗品<#elseif stock.sort == 2>固定资产<#else>无</#if></td>
		<td>${(stock.on)!''}</td>
		<td>${(stock.stockcount)!''}</td>
		<td><a href="javascript:;" onclick="javascript: sys_load_handle('stock-in_${stock.code}');return false;" data-toggle="tooltip" title="采购入库" class="btn btn-xs btn-success"><i class="icon-edit"></i></a>
		<a href="javascript:;" onclick="javascript: sys_load_handle('stock-consuming_${stock.code}');return false;" data-toggle="tooltip" title="领用" class="btn btn-xs btn-write"><i class=" icon-share"></i></a></td>		
	</tr>
	</#list>
	</tbody>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'query_stock'/>